package com.cx.util;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author cxx
 * @create 2021-04-09 14:33
 **/
public class SockTest {

    public static void main(String[] args) {

        try {
            ServerSocket serverSocket = new ServerSocket (8022);
            while(true){
                Socket socket = serverSocket.accept ();
            }
        } catch (IOException e) {
            e.printStackTrace ();
        }

    }


}
